// 导出属于员工的路由规则
import Layout from '@/layout'

// 每个子模块 都是外层是layout  组件位于layout的二级路由里面
export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '',
      component: () => import('@/views/employees'),
      meta: {
        title: '员工',
        icon: 'people'
      }
    },
    // 在子节点创建
    {
      path: 'import',
      // 引入页面
      component: () => import('@/views/employees/import.vue'),
      //
      hidden: true
    },
    {
      // 动态路由参数
      path: 'detail/:id',
      // 引入页面
      component: () => import('@/views/employees/detail.vue'),
      //
      hidden: true
    },
    {
      path: 'print/:id', // 二级默认路由
      component: () => import('@/views/employees/print.vue'),
      hidden: true
    }
  ]
}
